<template>
  <div class="index">
    <div class="mainContainer">
        <el-header class="header">
          学生成绩管理系统
      </el-header>
      <el-main>
           <div class="grid-content bg-purple1">
               <el-button type="primary" size="large" round @click="toaddvue">录入成绩</el-button>
            </div>
           <div class="grid-content bg-purple2">
               <el-button type="primary" size="large" round @click="toSelect">查询|修改|删除 成绩</el-button>
           </div>
      </el-main>
    </div>
  </div>
</template>

<script>
export default {
    name:"Index",
    data () {
        return {
            
        }
    },
    methods:{
      toaddvue(){
        this.$router.push('/addgrades');
      },
      toSelect(){
        this.$router.push('/selection');
      },
    }
}
</script>

<style>
.header{
  font-size: 25px;
}
.index{
     background:url("../../static/img/SelectBGP.png");
    width:100%;			
     height:100%;		
    position:fixed;
    background-size:100% 100%;
    margin-top:  -55px;
}

.mainContainer{
  margin: 0 auto;
  margin-top:10%;
}
 .el-header {
    margin:0 auto;
    width: 75%;
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-main {    
    width: 75%;
    margin:0 auto;
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
  .el-col {
    border-radius: 4px;
  }
  .bg-purple1 {
    width: 40%;
    float: left;
  }
  .bg-purple2 {
    width: 40%;
    float: right;
  }
</style>